package com.inspur.xiaoju.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@Document(collection = "surveys")
public class Survey {
    @Id
    private String id;
    private String title;
    private String description;
    private String surveyPath;
    private String workspaceId;
    private String creatorId;
    private String creator;
    private Map<String, Object> code;
    private String surveyType;
    private Status curStatus;
    private Status subStatus;
    private Date createDate;
    private Date updateDate;
    private List<Status> statusList;
    
    @Data
    public static class Status {
        private String status;
        private Date date;
    }
}